From ffd5e0fcce18f75f0f1ca43953e07d6fb3861073 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ho=C3=A0ng=20=C4=90=E1=BB=A9c=20Hi=E1=BA=BFu?= Date: Thu, 12 Oct 2017 13:04:58 +0900 Subject: [PATCH] layout: fix typo, and improve pronoun "it" is ambiguous between `new` and `at` (the most recent noun). --- src/cargo/ops/cargo_rustc/layout.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/ops/cargo_rustc/layout.rs b/src/cargo/ops/cargo_rustc/layout.rs index b28e1bb9d..464a68945 100644 --- a/src/cargo/ops/cargo_rustc/layout.rs +++ b/src/cargo/ops/cargo_rustc/layout.rs @@ -78,11 +78,11 @@ pub fn is_bad_artifact_name(name: &str) -> bool { } impl Layout { - /// Calcuate the paths for build output, lock the build directory, and return as a Layout. + /// Calculate the paths for build output, lock the build directory, and return as a Layout. /// /// This function will block if the directory is already locked. /// - /// Differs from `at` in that it calculates the root path from the workspace target directory, + /// Differs from `at` in that this calculates the root path from the workspace target directory, /// adding the target triple and the profile (debug, release, ...). pub fn new(ws: &Workspace, triple: Option<&str>, @@ -98,7 +98,7 @@ impl Layout { Layout::at(ws.config(), path) } - /// Calcuate the paths for build output, lock the build directory, and return as a Layout. + /// Calculate the paths for build output, lock the build directory, and return as a Layout. /// /// This function will block if the directory is already locked. pub fn at(config: &Config, root: Filesystem) -> CargoResult { -- 2.30.2